<template>
    <div class="nav-bar">
      <div class="left"><slot name="left"></slot></div>
      <div class="right"><slot name="right"></slot></div>
    </div>
</template>

<script>
    export default {
        name: "NavBar"
    }
</script>

<style scoped>
  .nav-bar{
    position: fixed;
    background-color: #fff;
    width: 100vw;

    /*line-height可以直接使文字居中*/
    line-height: 10vh;
    text-align: center;

    /*box-shadow:水平方向，垂直方向，模糊度，阴影距离，颜色*/
    box-shadow: 0 1px 1px  rgba(100,100,100,.1);
}
  /* .left,.right{

    background: red;
  } */
  .right{
    width: 30vw;
    display: flex;
    justify-content: space-between;
    /*background: blue;*/
  }
</style>
